package com.ran.java_gobang.game.request;

import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class UserLoginRequest {

    @NotNull
    private int userId;

    @NotNull(message = "用户名不能为空")
    @Length(min = 3,max = 20)
    private String userName;

    @Length(min = 3,max = 20,message = "密码长度应该在[3,20]之间")
    @NotNull(message = "密码不能为空")
    private String password;
    private String message;
    private boolean flag;
}